package com.sojson.project.addr.entity.bo;

import javax.validation.constraints.NotNull;

import com.sojson.base.impl.Base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 空间坐标Bean
 * 
 * @author liu
 * @date 2021-04-20
 */
@Data
@ApiModel("空间坐标Bean")
public class Point extends Base {

    private static final long serialVersionUID = 1L;

    /** 经度 */
    @NotNull
    @ApiModelProperty("经度")
    private Double lon;
    /** 维度 */
    @NotNull
    @ApiModelProperty("维度")
    private Double lat;

    public Point() {}

    public Point(Double lon, Double lat) {
        this.lon = lon;
        this.lat = lat;
    }

}